<?php
class TaskMapper implements IDataMapper {
	
	public function mapRow($row) {
		$taskDto = new TaskDto();
		$taskDto->setId($row['id']);
		$taskDto->setProjectId($row['projectId']);
		$taskDto->setName($row['name']);
		$taskDto->setCreationDate($row['creationDate']);
		$taskDto->setFinishDate($row['finishDate']);
		$taskDto->setDescription($row['description']);
		$taskDto->setImportant($row['important']);
		$taskDto->setOrderId($row['order_id']);
		$taskDto->setStatus($row['status']);
		$taskDto->setStatusChangedDate($row['statusChangedDate']);
		$taskDto->setAuthor($row['author']);
		$taskDto->setReported($row['reported']);
		$taskDto->setTaskType($row['tasktype']);
		$taskDto->setDeleted($row['deleted']);
		$taskDto->setDeleteDate($row['deletedate']);
		$taskDto->setUpdateDate($row['updatedate']); 
		$taskDto->setDaily($row['daily']);
		return $taskDto;
	}
}

?>
